﻿<%@ Page Language="C#" MasterPageFile="~/Common/Master/PopupDiv.master" AutoEventWireup="true" Inherits="Common_Dict_Edit" Title="无标题页" Codebehind="Edit.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style1
        {
            width: 87px;
            text-align:right;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Panel ID="pnlMain" runat="server" Width="100%">
        <table style="width: 100%">
            <tr>
                <td class="style1">
                    <asp:Label ID="Label1" runat="server" Text="名　　称："></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="Name" runat="server" CssClass="txt" Width="170px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Name"
                        Display="None" ErrorMessage="请输入角色名"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label2" runat="server" Text="代　　码："></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="Code" runat="server" CssClass="txt" Width="170px"></asp:TextBox>
                    <asp:HiddenField ID="UpperID" runat="server" />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="Code" Display="None" ErrorMessage="代码必须是数字且不能为空" 
                        SetFocusOnError="True" ValidationExpression="\d+"></asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="Code" Display="None" ErrorMessage="代码不能为空" 
                        SetFocusOnError="True"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label3" runat="server" Text="描　　述："></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="Remark" runat="server" CssClass="txt" Height="60px" TextMode="MultiLine"
                        Width="170px"></asp:TextBox>
                </td>
            </tr>
        </table>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
            ShowSummary="False" />
    </asp:Panel>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="保存" />
</asp:Content>
